package com.base.service.impl;

import com.base.mapper.voipmapper.ShareRedPacketMapper;
import com.base.po.voip.ShareRedPacket;
import com.base.po.voip.ShareRedPacketExample;
import com.base.service.ShareRedPacketService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("shareRedPacketService")
public class ShareRedPacketServiceImpl implements ShareRedPacketService {
	
	@Autowired
	private ShareRedPacketMapper shareRedPacketMapper;

	@Override
	public int countByExample(ShareRedPacketExample example) {
		return shareRedPacketMapper.countByExample(example);
	}

	@Override
	public int deleteByExample(ShareRedPacketExample example) {
		return shareRedPacketMapper.deleteByExample(example);
	}

	@Override
	public int insert(ShareRedPacket record) {
		return shareRedPacketMapper.insert(record);
	}

	@Override
	public int insertSelective(ShareRedPacket record) {
		return shareRedPacketMapper.insertSelective(record);
	}

	@Override
	public List<ShareRedPacket> selectByExample(ShareRedPacketExample example) {
		return shareRedPacketMapper.selectByExample(example);
	}

	@Override
	public List<ShareRedPacket> selectByStatus(String userid) {
		return shareRedPacketMapper.selectByStatus(userid);
	}

	@Override
	public int updateByExampleSelective(ShareRedPacket record, ShareRedPacketExample example) {
		return shareRedPacketMapper.updateByExampleSelective(record,example);
	}

	@Override
	public int updateByExample(ShareRedPacket record, ShareRedPacketExample example) {
		return shareRedPacketMapper.updateByExample(record,example);
	}

	@Override
	public int updateByPrimaryKeySelective(ShareRedPacket record) {
		return shareRedPacketMapper.updateByPrimaryKeySelective(record);
	}
}
